#include "ext2.h"

char filename[64];
unsigned short segment;

void main()
{
	segment = 0x2000;  // choose a free segment
	printf("Simple OS running");
	while(1)
	{
		printf("\nenter filename to execute : ");
		gets(filename);
		if (load(filename, segment))
		{
			printf("\njmp to segment 0x%x\n", segment);
			go(segment);
		}
		else
		{
            printf("\nexec ERROR : file not found\n");
		}
	}
}
